package com.itheima.api.client;

import com.itheima.api.client.fallback.AdminClientFallbackFactory;
import com.itheima.api.client.fallback.WebClientFallbackFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignClientConfig {

    @Bean
    public AdminClientFallbackFactory adminClientFallbackFactory(){
        return  new AdminClientFallbackFactory();
    }
    @Bean
    public WebClientFallbackFactory webClientFallbackFactory(){
        return  new WebClientFallbackFactory();
    }

}
